﻿namespace compshop.Infrastructure
{
    /// <summary>
    /// ModuleActivityState describe the activity state of module
    /// Object of this type will be send when ModuleActivityEvent raised
    /// </summary>
    public class ModuleActivityState
    {
        /// <summary>
        /// if true - all modules should be deactivated
        /// 
        /// </summary>
        public bool DeactivateAll {get; set;}

        /// <summary>
        /// get or set region name. If module is in this region it should be activated
        /// </summary>
        public string ActivateModule { get; set; }

        /// <summary>
        /// here should be a user role in this module
        /// * means that module have all permissions
        /// None - means that module has not any permissions
        /// </summary>
        public string param { get; set; }
    }
}
